<?php

namespace app\admin\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'name' => 'require|chsDash|max:30',
        'pwd' => 'require'
    ];

    protected $message = [
        'name.chsDash' => '用户名汉字,数字,下划线',
        'name.max' => '用户名不能超过30个字',
        'name.require' => '用户名不能为空',
        'pwd' => '密码不能为空',
    ];
}